/*
 * @Author: xinyang3
 * @Date: 2021-09-02 18:29
 * @Descripttion: mock数据生成
 * @LastEditors: xinyang3
 * @LastEditTime: 2021-09-28 14:09
 */
const Mock = require('mockjs');
const random = Mock.Random;

const list = () => {
  return Mock.mock({
    list: [
      {
        id: random.natural(1),
        title: random.ctitle(),
        content: random.cparagraph(),
        date: random.date('yyyy-MM-dd HH:mm:ss'),
        img: random.integer(1, 23),
      },
      {
        id: random.natural(1),
        title: random.ctitle(),
        content: random.cparagraph(),
        date: random.date('yyyy-MM-dd HH:mm:ss'),
        img: random.integer(1, 23),
      },
      {
        id: random.natural(1),
        title: random.ctitle(),
        x: random.cparagraph(),
        date: random.date('yyyy-MM-dd HH:mm:ss'),
        img: random.integer(1, 23),
      },
      {
        id: random.natural(1),
        title: random.ctitle(),
        content: random.cparagraph(),
        date: random.date('yyyy-MM-dd HH:mm:ss'),
        img: random.integer(1, 23),
      },
      {
        id: random.natural(1),
        title: random.ctitle(),
        content: random.cparagraph(),
        date: random.date('yyyy-MM-dd HH:mm:ss'),
        img: random.integer(1, 23),
      },
    ],
  });
};

module.exports.list = list;
